<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Ticket</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Interface Ticket</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Through this interface all access to the content repository occurs.</p>
<p class="description"><p>Returns by <a href="../phpContentRepository/Repository.html#methodlogin">Repository::login()</a> upon success.</p><p>Both level 1 and 2 implementations must implement this interface, though  in level 1 some methods will throw an  <a href="../phpContentRepository/Exceptions/UnsupportedRepositoryOperationException.html">UnsupportedRepositoryOperationException</a> (see the method-by-method  descriptions).</p></p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright &amp;copy; 2004-2005, Domain51</li>
				<li><span class="field">author:</span> PHP - Travis Swicegood &lt;<a href="mailto:travis@domain51.net">travis@domain51.net</a>&gt;</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_Ticket_interface_php.html">/Ticket.interface.php</a> (line <span class="field">46</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">object
 The</span>
										<a href="#getCredentials" title="details" class="method-name">getCredentials</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">object
 A</span>
										<a href="#getNodeByAbsPath" title="details" class="method-name">getNodeByAbsPath</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$absPath</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">object
 A</span>
										<a href="#getNodeByUUID" title="details" class="method-name">getNodeByUUID</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$uuid</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getPrefixes" title="details" class="method-name">getPrefixes</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">object
 A</span>
										<a href="#getRepository" title="details" class="method-name">getRepository</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">object
 The</span>
										<a href="#getRootNode" title="details" class="method-name">getRootNode</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getURI" title="details" class="method-name">getURI</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">object
 A</span>
										<a href="#getWorkspace" title="details" class="method-name">getWorkspace</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">object
 A</span>
										<a href="#impersonate" title="details" class="method-name">impersonate</a>
											(<span class="var-type">Credentials</span>&nbsp;<span class="var-name">$credentials</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#importXML" title="details" class="method-name">importXML</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$parentAbsPath</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$in</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#logout" title="details" class="method-name">logout</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#revert" title="details" class="method-name">revert</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#save" title="details" class="method-name">save</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setPrefix" title="details" class="method-name">setPrefix</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span>, <span class="var-type">uri</span>&nbsp;<span class="var-name">$uri</span>)
									</div>
							</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetCredentials" id="getCredentials"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getCredentials</span> (line <span class="line-number">65</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the <a href="../phpContentRepository/Credentials.html">Credentials</a> object that was used to authorize the  issue of this <a href="../phpContentRepository/Ticket.html">Ticket</a>.</p>
	<ul class="tags">
				<li><span class="field">return:</span> <a href="../phpContentRepository/Credentials.html">Credentials</a> of this <a href="../phpContentRepository/Ticket.html">Ticket</a>.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object
 The</span>
		<span class="method-name">
			getCredentials
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetNodeByAbsPath" id="getNodeByAbsPath"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getNodeByAbsPath</span> (line <span class="line-number">146</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the <a href="../phpContentRepository/Node.html">Node</a> at the specified absolute path.</p>
	<ul class="tags">
				<li><span class="field">return:</span> <a href="../phpContentRepository/Node.html">Node</a>.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/PathNotFoundException.html">PathNotFoundException</a>    If the specified path cannot be found.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If another error occurs.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object
 A</span>
		<span class="method-name">
			getNodeByAbsPath
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$absPath</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$absPath</span><span class="var-description">: An absolute path.</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetNodeByUUID" id="getNodeByUUID"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getNodeByUUID</span> (line <span class="line-number">131</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the <a href="../phpContentRepository/Node.html">Node</a> specifed by the given UUID.</p>
<p class="description"><p>Only applies to <a href="../phpContentRepository/Node.html">Node</a>s that expose a UUID, in other words, those  of mixin <a href="../phpContentRepository/NodeType.html">NodeType</a> mix:referenceable.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> <a href="../phpContentRepository/Node.html">Node</a>.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/ItemNotFoundException.html">ItemNotFoundException</a>    If the specified UUID is not found.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If another error occurs.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object
 A</span>
		<span class="method-name">
			getNodeByUUID
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$uuid</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$uuid</span><span class="var-description">: A universally unique identifier (UUID).</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetPrefixes" id="getPrefixes"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getPrefixes</span> (line <span class="line-number">287</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns all prefixes currently set for this <a href="../phpContentRepository/Ticket.html">Ticket</a>.</p>
<p class="description"><p>This includes all those registered in the <a href="../phpContentRepository/NamespaceRegistry.html">NamespaceRegistry</a> but  not over-ridden by a <a href="../phpContentRepository/Ticket.html#methodsetPrefix">Ticket::setPrefix()</a>, plus those  currently set locally by <a href="../phpContentRepository/Ticket.html#methodsetPrefix">Ticket::setPrefix()</a>.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getPrefixes
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetRepository" id="getRepository"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getRepository</span> (line <span class="line-number">55</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the <a href="../phpContentRepository/Repository.html">Repository</a> object through which this <a href="../phpContentRepository/Ticket.html">Ticket</a>  was acquired.</p>
	<ul class="tags">
				<li><span class="field">return:</span> <a href="../phpContentRepository/Repository.html">Repository</a> object.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object
 A</span>
		<span class="method-name">
			getRepository
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetRootNode" id="getRootNode"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getRootNode</span> (line <span class="line-number">112</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the root <a href="../phpContentRepository/Node.html">Node</a> of the workspace.</p>
<p class="description"><p>The root <a href="../phpContentRepository/Node.html">Node</a>, &quot;/&quot;, is the main access point to the content of the  <a href="../phpContentRepository/Workspace.html">Workspace</a>.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> root <a href="../phpContentRepository/Node.html">Node</a> of the <a href="../phpContentRepository/Workspace.html">Workspace</a>.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If an error occurs.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object
 The</span>
		<span class="method-name">
			getRootNode
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetURI" id="getURI"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getURI</span> (line <span class="line-number">302</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">For a given $prefix, returns the URI to which it is mapped  as currently set in this <a href="../phpContentRepository/Ticket.html">Ticket</a>.</p>
<p class="description"><p>If the prefix is unknown a <a href="../phpContentRepository/Exceptions/NamespaceException.html">NamespaceException</a> is thrown.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/NamespaceException.html">NamespaceException</a>    If the prefix is unknown.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getURI
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$prefix</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetWorkspace" id="getWorkspace"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getWorkspace</span> (line <span class="line-number">74</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the <a href="../phpContentRepository/Workspace.html">Workspace</a> attached to this <a href="../phpContentRepository/Ticket.html">Ticket</a>.</p>
	<ul class="tags">
				<li><span class="field">return:</span> <a href="../phpContentRepository/Workspace.html">Workspace</a> object.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object
 A</span>
		<span class="method-name">
			getWorkspace
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodimpersonate" id="impersonate"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">impersonate</span> (line <span class="line-number">97</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns new <a href="../phpContentRepository/Ticket.html">Ticket</a> in accordance with the specified (new)  <a href="../phpContentRepository/Credentials.html">Credentials</a>.</p>
<p class="description"><p>Allows the current user to &quot;impersonate&quot; another using incomplete  <a href="../phpContentRepository/Credentials.html">Credentials</a> (perhaps including a user name but no password, for  example), assuming that their original <a href="../phpContentRepository/Ticket.html">Ticket</a> gives them that  right.</p><p>Throws a <a href="../phpContentRepository/Exceptions/LoginException.html">LoginException</a> if the current <a href="../phpContentRepository/Ticket.html">Ticket</a> does not  have sufficient rights.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> <a href="../phpContentRepository/Ticket.html">Ticket</a> object</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/LoginException.html">LoginException</a>    If the current ticket does not have sufficient rights.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">object
 A</span>
		<span class="method-name">
			impersonate
		</span>
					(<span class="var-type">Credentials</span>&nbsp;<span class="var-name">$credentials</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object
 A</span>
				<span class="var-name">$credentials</span><span class="var-description">: <a href="../phpContentRepository/Credentials.html">Credentials</a> object</span>			</li>
				</ul>
		
		
	</div>
<a name="methodimportXML" id="importXML"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">importXML</span> (line <span class="line-number">256</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Deserializes an XML document (in system view form or  document view form) and adds the resulting item subtree  as a child of the <a href="../phpContentRepository/Node.html">Node</a> at parentAbsPath. Requires a  save() to persist the changes.</p>
<p class="description"><p>The deserialization mechanism must take into account the  <a href="../phpContentRepository/Property.html">Property</a> jcr:uuid in order to reconstruct hard links  across serialization/deserialization cycles.</p><p>If <a href="../phpContentRepository/NodeType.html">NodeType</a> restrictions prevent the addition of the subtree to  the <a href="../phpContentRepository/Node.html">Node</a> at $parentAbsPath, a  <a href="../phpContentRepository/Exceptions/ConstraintViolationException.html">ConstraintViolationException</a> is thrown.</p><p>If the XML string provided is not a valid JCR system view  XML document then an <a href="../phpContentRepository/Exceptions/InvalidSerializedDataException.html">InvalidSerializedDataException</a> is thrown.</p><p>If the user does not have sufficient access rights to write the  deserialized <a href="../phpContentRepository/Node.html">Node</a>s and <a href="../phpContentRepository/Property.html">Property</a>s, then an  <a href="../phpContentRepository/Exceptions/AccessDeniedException.html">AccessDeniedException</a> is thrown on <a href="../phpContentRepository/Ticket.html#methodsave">save()</a>.</p><p><strong>PHP Note</strong>: Java requires that $in be an InputStream.  As PHP doesn't do this, it is only required that an XML string be based  in.  At the option of the implementing developer, $in could  also be made to allow for a  <a href="http://us3.php.net/manual/en/ref.dom.php">DOM XML</a> or in the case  of an XML document without attributes a  <a href="http://us2.php.net/manual/en/ref.simplexml.php">SimpleXML</a> object.  At all times, however, this method should be capable of accepting a  string as $in, in addition to any implementation-specific  capabilities.</p><p><strong>PHP Note</strong>: In the Java specification, there is another  <a href="../phpContentRepository/Ticket.html#methodimportXML">importXML()</a> that requires only the first parameter.   It relies  on the org.xml package in Java to operate, so it has been  excluded from <a href="http://www.phpcr.org">phpContentRepository</a>.</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/PathNotFoundException.html">PathNotFoundException</a>    If no <a href="../phpContentRepository/Node.html">Node</a> exists at $parentAbsPath.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/ItemExistsException.html">ItemExistsException</a>    If an item by the same name as the newly imported root <a href="../phpContentRepository/Node.html">Node</a>    already exists.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/ConstraintViolationException.html">ConstraintViolationException</a>    If <a href="../phpContentRepository/NodeType.html">NodeType</a> restrictions prevent the addition of the subtree to    the <a href="../phpContentRepository/Node.html">Node</a> at $parentAbsPath.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/InvalidSerializedDataException.html">InvalidSerializedDataException</a>    If the serialized data being input is not a valid JCR    system view XML document.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If another error occurs.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			importXML
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$parentAbsPath</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$in</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$parentAbsPath</span><span class="var-description">: The absolute path of the <a href="../phpContentRepository/Node.html">Node</a> below which the deserialized    subtree is added.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$in</span><span class="var-description">: The string from which the XML to be deserilaized is read.</span>			</li>
				</ul>
		
		
	</div>
<a name="methodlogout" id="logout"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">logout</span> (line <span class="line-number">312</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Releases all resources associated with this <a href="../phpContentRepository/Ticket.html">Ticket</a>.</p>
<p class="description"><p>Calling this method is not mandatory since a good implementaion should  automatically timeout anyway. However, when more precise control over  resource allocation is needed this method can be used.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			logout
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodrevert" id="revert"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">revert</span> (line <span class="line-number">196</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Discards all pending changes made through this <a href="../phpContentRepository/Ticket.html">Ticket</a>, that is, all  changes made since the last sucessful save().</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If an unexpected error occurs.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			revert
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodsave" id="save"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">save</span> (line <span class="line-number">186</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Validates and (if validation succeeds) persists all changes made through  this <a href="../phpContentRepository/Ticket.html">Ticket</a> since the last save() or revert().</p>
<p class="description"><p>Constraints mandated by <a href="../phpContentRepository/NodeType.html">NodeType</a>s are validated on <a href="../phpContentRepository/Ticket.html#methodsave">save()</a>.  If validation fails a <a href="../phpContentRepository/Exceptions/ConstraintViolationException.html">ConstraintViolationException</a> is thrown and  the state of the transient storage is left unaffected. If validation  succeeds then all pending changes are persited and the transient change  cache is flushed.</p><p>The <a href="../phpContentRepository/Ticket.html#methodsave">save()</a> method allows a <a href="../phpContentRepository/Node.html">Node</a> to be in a temporarily  invalid state while it is being &quot;built&quot;, that is, while it is having  properties and child <a href="../phpContentRepository/Node.html">Node</a>s added to it. Once it is in a  consistent state it can be saved.</p><p>An <a href="../phpContentRepository/Exceptions/AccessDeniedException.html">AccessDeniedException</a> will be thrown if an attempt is  made to <a href="../phpContentRepository/Ticket.html#methodsave">save()</a> changes for which the current user does not have  sufficient access rights.</p><p>An <a href="../phpContentRepository/Exceptions/ActionVetoedException.html">ActionVetoedException</a> will be thrown if a  <a href="../phpContentRepository/Level2/VetoableEventListener.html">VetoableEventListener</a> vetoes one of the changes being saved.</p><p>If <a href="../phpContentRepository/Ticket.html#methodsave">save()</a> succeeds then the all changes are removed from the cache  of pending changes in the <a href="../phpContentRepository/Ticket.html">Ticket</a>.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/ConstraintViolationException.html">ConstraintViolationException</a>    If any of the changes would violate a constraint as defined by the    <a href="../phpContentRepository/NodeType.html">NodeType</a> of the respective <a href="../phpContentRepository/Node.html">Node</a>.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/AccessDeniedException.html">AccessDeniedException</a>    If the current <a href="../phpContentRepository/Ticket.html">Ticket</a> does not have sufficient access rights to    complete the operation.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If another error occurs.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/ActionVetoedException.html">ActionVetoedException</a>    If a <a href="../phpContentRepository/Level2/VetoableEventListener.html">VetoableEventListener</a> vetoes one of the changes being    saved.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			save
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodsetPrefix" id="setPrefix"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setPrefix</span> (line <span class="line-number">275</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Within the scope of this <a href="../phpContentRepository/Ticket.html">Ticket</a>, rename a persistently registered  namespace URI to the new prefix.</p>
<p class="description"><p>The renaming only affects operations done through this <a href="../phpContentRepository/Ticket.html">Ticket</a>.  To clear all renamings the client must acquire a new Ticket}.</p><p>If the specified $uri is not among those registered in the  <a href="../phpContentRepository/NamespaceRegistry.html">NamespaceRegistry</a> then a <a href="../phpContentRepository/Exceptions/NamespaceException.html">NamespaceException</a> is thrown.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/NamespaceException.html">NamespaceException</a>    If specified uri is not registered.</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setPrefix
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$prefix</span>, <span class="var-type">uri</span>&nbsp;<span class="var-name">$uri</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$prefix</span>			</li>
					<li>
				<span class="var-type">uri</span>
				<span class="var-name">$uri</span><span class="var-description">: a string</span>			</li>
				</ul>
		
		
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 31 Dec 2004 10:15:24 -0600 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>